<script>
export default {
  onLaunch() {
    const token = uni.getStorageSync("token");

    if (!token) {
      uni.reLaunch({
        url: "/pages/user/login",
      });
    }
  },
};
</script>

<style lang="scss">
@import "@/uni_modules/uview-ui/index.scss";
@import "/static/style/index.scss";
</style>
